<?php


namespace app\admin\controller;
use app\admin\model\GoodsBrand as GoodsBrandModel;
use think\Request;
use think\Paginator;    //分页
use think\File;         //上传
use think\Image;        //图片

class GoodsBrand extends Base
{
    //商品品牌表
    public function lists()
    {
        //查询
        $brand = GoodsBrandModel::where(['brand_del'=>0])->paginate(4);
        $brandPage = $brand->render();

        //传值,渲染页面
        $webSite = WEB_SITE;
        $staticAdmin = STATIC_ADMIN;

        $this->assign([
            'webSite'     => $webSite,
            'staticAdmin' => $staticAdmin,
            'brand'       => $brand,
            'brandPage'   => $brandPage,
        ]);
        return $this->fetch();
    }


}